<h2>(text-style:"sway")[(font:"Comic Sans MS")[(text-style:"italic")[(live:1s)[(text-colour:(either:"red","green"))[Christmas Cake Game!] ]] ]]</h2>
<div id="Cakescreen">
</div>
Welcome to Viki's bakery. She needs your help to complete all of the cake orders in time for the holiday season. Can you help bring a festive spirit to her customers?
[[Begin->Cake game]] (link:"Give the customer the order")[(if:$selectedcake's Shape is $targetshape and $selectedcake's BaseFlavor is $targetflavor and $selectedcake's Icing is $targeticing and $selectedcake's Decoration1 is $targettopping and $selectedcake's Decoration2 is $targetdeco)[(replace:?win)[Great! You have completed the order!](set:$orders to it - 1)(replace:?ordernum)[$orders](set:$points to it + 1)(replace:?points)[$points]
(link:"Next customer")[(replace:?win)[ ](replace:?orderconf)[(link:"Give the customer the order")[(if:$selectedcake's Shape is $targetshape and $selectedcake's BaseFlavor is $targetflavor and $selectedcake's Icing is $targeticing and $selectedcake's Decoration1 is $targettopping and $selectedcake's Decoration2 is $targetdeco)[(replace:?win)[Great! You have completed the order!](set:$points to it + 1)(set:$orders to it - 1)(replace:?ordernum)[$orders](replace:?points)[$points]]
(link:"Next customer")[(replace:?win)[ ] (display:"Cake order")] ] (display:"Cake order")](set:$targetshape to (either:"round","square","star","heart","dome","tree","Bundt","triangle","book","cat","bunny","dinosaur","horse","doll","snowman","bear","santa hat","house") )(set: $targetflavor to (either:"vanilla","chocolate","strawberry","carrot","gingerbread","matcha","lemon","red velvet","orange","black","mango","chocolate chip","confetti") )(set: $targeticing to (either:"no icing","vanilla","chocolate","strawberry","matcha","lemon","orange","mint","blueberry","mango","cherry blossom","peppermint","rainbow","neapolitan","galaxy") )(set: $targettopping to (either:"no toppings","rainbow sprinkles","chocolate sprinkles","galaxy sprinkles","heart sprinkles","mixed nuts","chocolate chips","peppermint shards","powdered sugar","coaca powder","baked Alaska") )(set: $targetdeco to (either:"no decorations","icing roses","icing snowflakes","icing reindeer","icing stars","icing carrots","icing christmas lights","strawberries","vanilla flowers","blueberries","cherry blossom flowers","blackberries","raspberries","cherries","mangoes","orange slices","lemon slices","lime slices","banana slices","candy shards","mini chocolate bars","chocolate straws","chocolate bon bons","chcolate geodes","marshmallows","smores","mixed berries","mixed citrus slices","peanut brittle","almonds","walnuts","mixed nuts","trail mix","a cat","a bear","a dog","a dragon","a bunny","a snowman bride and groom","a castle","balloons","a rocketship","a dinosaur","a santa hat") ) (replace:?order)[Your customer wants a $targetshape -shaped $targetflavor cake with $targeticing (if:$targeticing is "no icing")[](else:)[icing] and $targettopping with $targetdeco on top.]]](else:)[ (replace:?win)[Sorry, that was not the order! Try again.] (live:5.0s)[(replace:?win)[ ]]
(link-rerun:"Give the customer the order")[(if:$selectedcake's Shape is $targetshape and $selectedcake's BaseFlavor is $targetflavor and $selectedcake's Icing is $targeticing and $selectedcake's Decoration1 is $targettopping and $selectedcake's Decoration2 is $targetdeco)[(replace:?orderconf)[(link:"Next customer")[(replace:?win)[ ] (display:"Cake order") ] ](replace:?win)[Great! You have completed the order!] (set:$points to it + 1)(set:$orders to it - 1)(replace:?ordernum)[$orders](replace:?points)[$points]
](else:)[ (replace:?win)[Sorry, that was not the order! Try again.] (live:5.0s)[(replace:?win)[ ]] ] ]] ](after:0.2s)[(show:?game)]
(set:$selectedcake to (dm:"Shape","none","BaseFlavor","none","Icing","none","Decoration1","none","Decoration2","none"))(set:$targetshape to (either:"round","square","star","heart","dome","tree","Bundt","triangle","book","cat","bunny","dinosaur","horse","doll","snowman","bear","santa hat","house") )(set: $targetflavor to (either:"vanilla","chocolate","strawberry","carrot","gingerbread","matcha","lemon","red velvet","orange","black","mango","chocolate chip","confetti") )(set: $targeticing to (either:"no icing","vanilla","chocolate","strawberry","matcha","lemon","orange","mint","blueberry","mango","cherry blossom","peppermint","rainbow","neapolitan","galaxy") )(set: $targettopping to (either:"no toppings","rainbow sprinkles","chocolate sprinkles","galaxy sprinkles","heart sprinkles","mixed nuts","chocolate chips","peppermint shards","powdered sugar","coaca powder","baked Alaska") )(set: $targetdeco to (either:"no decorations","icing roses","icing snowflakes","icing reindeer","icing stars","icing carrots","icing christmas lights","strawberries","vanilla flowers","blueberries","cherry blossom flowers","blackberries","raspberries","cherries","mangoes","orange slices","lemon slices","lime slices","banana slices","candy shards","mini chocolate bars","chocolate straws","chocolate bon bons","chcolate geodes","marshmallows","smores","mixed berries","mixed citrus slices","peanut brittle","almonds","walnuts","mixed nuts","trail mix","a cat","a bear","a dog","a dragon","a bunny","a snowman bride and groom","a castle","balloons","a rocketship","a dinosaur","a santa hat") )(set:$orders to 50) (event: when time > 2s)[(show:?order,?orderconf,?ordernum)]
|=
Orders remaing: |ordernum)[$orders]
=|
Points: |points)[$points]
|==|
|game)[Assemble the cake according to order:
<div class="playarea">
(font:"Ink Free")[(text-style:"shadow")[(text-style:"emboss")[(text-colour:#087f5b)[Cake Shape:]] (dropdown:bind $selectedcake's Shape, "round","square","star","heart","dome","tree","Bundt","triangle","book","cat","bunny","dinosaur","horse","doll","snowman","bear","santa hat","house")
(text-style:"emboss")[(text-colour:#087f5b)[Cake Flavor: ]] (dropdown:bind $selectedcake's BaseFlavor, "vanilla","chocolate","strawberry","carrot","gingerbread","matcha","lemon","red velvet","orange","black","mango","chocolate chip","confetti")
(text-style:"emboss")[(text-colour:#0c8599)[Icing:]] (dropdown:bind $selectedcake's Icing, "no icing","vanilla","chocolate","strawberry","matcha","lemon","orange","mint","blueberry","mango","cherry blossom","peppermint","rainbow","neapolitan","galaxy")
(text-style:"emboss")[(text-colour:#c5f6fa)[Cake Toppings: ]] (dropdown:bind $selectedcake's Decoration1, "no toppings","rainbow sprinkles","chocolate sprinkles","galaxy sprinkles","heart sprinkles","mixed nuts","chocolate chips","peppermint shards","powdered sugar","coaca powder","baked Alaska")
(text-style:"emboss")[(text-colour:#e3fafc)[Cake Toppers:]] (dropdown:bind $selectedcake's Decoration2, "no decorations","icing roses","icing snowflakes","icing reindeer","icing stars","icing carrots","icing christmas lights","strawberries","vanilla flowers","blueberries","cherry blossom flowers","blackberries","raspberries","cherries","mangoes","orange slices","lemon slices","lime slices","banana slices","candy shards","mini chocolate bars","chocolate straws","chocolate bon bons","chcolate geodes","marshmallows","smores","mixed berries","mixed citrus slices","peanut brittle","almonds","walnuts","mixed nuts","trail mix","a cat","a bear","a dog","a dragon","a bunny","a snowman bride and groom","a castle","balloons","a rocketship","a dinosaur","a santa hat")]]
</div>
|order)[Your customer wants a $targetshape -shaped $targetflavor cake with $targeticing (if:$targeticing is "no icing")[](else:)[icing] and $targettopping with $targetdeco on top.]
|win)[]
|orderconf)[(display:"Cake order code")]
]
(live:5s)[(if:$orders is 0)[(replace:?game)[Congratulations! you have completed all of the orders!
[[leave->Main Menu]]
[[play again->Cake game]]
]](else:)[] ](replace:?orderconf)[(link:"Give the customer the order")[(if:$selectedcake's Shape is $targetshape and $selectedcake's BaseFlavor is $targetflavor and $selectedcake's Icing is $targeticing and $selectedcake's Decoration1 is $targettopping and $selectedcake's Decoration2 is $targetdeco)[(replace:?win)[Great! You have completed the order!](set:$points to it + 1)(set:$orders to it - 1)(replace:?ordernum)[$orders](replace:?points)[$points]
(link:"Next customer")[(replace:?win)[ ] (display:"Cake order") ] ](else:)[ (replace:?win)[Sorry, that was not the order! Try again.] (live:5.0s)[(replace:?win)[ ]]
(link-rerun:"Give the customer the order")[(if:$selectedcake's Shape is $targetshape and $selectedcake's BaseFlavor is $targetflavor and $selectedcake's Icing is $targeticing and $selectedcake's Decoration1 is $targettopping and $selectedcake's Decoration2 is $targetdeco)[(replace:?orderconf)[(link:"Next customer")[(replace:?win)[ ] (display:"Cake order") ] ](replace:?win)[Great! You have completed the order!] (set:$points to it + 1)(set:$orders to it - 1)(replace:?ordernum)[$orders](replace:?points)[$points]
](else:)[ (replace:?win)[Sorry, that was not the order! Try again.] (live:5.0s)[(replace:?win)[ ]] ] ]]
]
]
(set:$targetshape to (either:"round","square","star","heart","dome","tree","Bundt","triangle","book","cat","bunny","dinosaur","horse","doll","snowman","bear","santa hat","house") )(set: $targetflavor to (either:"vanilla","chocolate","strawberry","carrot","gingerbread","matcha","lemon","red velvet","orange","black","mango","chocolate chip","confetti") )(set: $targeticing to (either:"no icing","vanilla","chocolate","strawberry","matcha","lemon","orange","mint","blueberry","mango","cherry blossom","peppermint","rainbow","neapolitan","galaxy") )(set: $targettopping to (either:"no toppings","rainbow sprinkles","chocolate sprinkles","galaxy sprinkles","heart sprinkles","mixed nuts","chocolate chips","peppermint shards","powdered sugar","coaca powder","baked Alaska") )(set: $targetdeco to (either:"no decorations","icing roses","icing snowflakes","icing reindeer","icing stars","icing carrots","icing christmas lights","strawberries","vanilla flowers","blueberries","cherry blossom flowers","blackberries","raspberries","cherries","mangoes","orange slices","lemon slices","lime slices","banana slices","candy shards","mini chocolate bars","chocolate straws","chocolate bon bons","chcolate geodes","marshmallows","smores","mixed berries","mixed citrus slices","peanut brittle","almonds","walnuts","mixed nuts","trail mix","a cat","a bear","a dog","a dragon","a bunny","a snowman bride and groom","a castle","balloons","a rocketship","a dinosaur","a santa hat") ) (replace:?order)[Your customer wants a $targetshape -shaped $targetflavor cake with $targeticing (if:$targeticing is "no icing")[](else:)[icing] and $targettopping with $targetdeco on top.]